#ifndef WF_PLAYER_AVPACKETQUEUE_H
#define WF_PLAYER_AVPACKETQUEUE_H

#include <queue>
#include <pthread.h>

extern "C" {
#include <libavcodec/avcodec.h>
};

class AVPacketQueue {
public:
    std::queue<AVPacket *> *pAVPacketQueue;
    pthread_mutex_t avPacketMutex;
    pthread_cond_t avPacketCond;
public:
    AVPacketQueue();

    ~AVPacketQueue();

public:
    void push(AVPacket *pPacket);

    AVPacket *pop();

    void clear();
};


#endif
